package com.globalwave.pos.inventory.entity;


import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;


/**
 * The persistent class for the INVENTORY_TRANSACTION database table.
 * 
 */
@Entity
@Table(name="INVENTORY_TRANSACTION")
public class InventoryTransaction  {
	private static final long serialVersionUID = 1L;
	public static final String TRANS_CODE_SHIPMENT = "S" ;
	public static final String TRANS_CODE_MORTGAGED = "M" ;
	public static final String TRANS_CODE_REPLENISHMENT = "R" ;
	public static final String TRANS_CODE_TNA = "T" ;
	
	public static final String TRANS_CODE_SAFE_QUANTITY_UPDATE = "SQU" ;
	
	
	
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="increment")
    @GenericGenerator(name="Inventory_Transaction_ID_SEQ", strategy = "increment")
	private Long    id                 ;
	private String  region_code        ;
	private String  warehouse_code     ;
	private Long    stock_item_number  ;
	private Short   ref_source         ;
	private Long    ref_id             ;
	private Long    ref_order_id       ;
	private Long    ref_uid            ;
	private Long    transaction_date   ;
	private String  transaction_code   ;
	private Integer on_hand_quantity   ;
	private Integer mortgaged_quantity ;
	private Integer unsalable_quantity ;
	private Short status_            ;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getRegion_code() {
		return region_code;
	}
	public void setRegion_code(String region_code) {
		this.region_code = region_code;
	}
	public String getWarehouse_code() {
		return warehouse_code;
	}
	public void setWarehouse_code(String warehouse_code) {
		this.warehouse_code = warehouse_code;
	}
	public Long getStock_item_number() {
		return stock_item_number;
	}
	public void setStock_item_number(Long stock_item_number) {
		this.stock_item_number = stock_item_number;
	}
	public Short getRef_source() {
		return ref_source;
	}
	public void setRef_source(Short ref_source) {
		this.ref_source = ref_source;
	}
	public Long getRef_id() {
		return ref_id;
	}
	public void setRef_id(Long ref_id) {
		this.ref_id = ref_id;
	}
	public Long getRef_order_id() {
		return ref_order_id;
	}
	public void setRef_order_id(Long ref_order_id) {
		this.ref_order_id = ref_order_id;
	}
	public Long getRef_uid() {
		return ref_uid;
	}
	public void setRef_uid(Long ref_uid) {
		this.ref_uid = ref_uid;
	}
	public Long getTransaction_date() {
		return transaction_date;
	}
	public void setTransaction_date(Long transaction_date) {
		this.transaction_date = transaction_date;
	}
	public String getTransaction_code() {
		return transaction_code;
	}
	public void setTransaction_code(String transaction_code) {
		this.transaction_code = transaction_code;
	}
	public Integer getOn_hand_quantity() {
		return on_hand_quantity;
	}
	public void setOn_hand_quantity(Integer on_hand_quantity) {
		this.on_hand_quantity = on_hand_quantity;
	}
	public Integer getMortgaged_quantity() {
		return mortgaged_quantity;
	}
	public void setMortgaged_quantity(Integer mortgaged_quantity) {
		this.mortgaged_quantity = mortgaged_quantity;
	}
	public Integer getUnsalable_quantity() {
		return unsalable_quantity;
	}
	public void setUnsalable_quantity(Integer unsalable_quantity) {
		this.unsalable_quantity = unsalable_quantity;
	}
	public Short getStatus_() {
		return status_;
	}
	public void setStatus_(Short status_) {
		this.status_ = status_;
	}

	

}